/*-------------------------------------------------------------------------
*************************************************************************
 * @doc CORE
 * @module vidnld.h | 
 *      Header files used for Veritalk/Zontalk initiated download functions 
 *
 * Product     :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   :   
 * <nl>Notes       :
 *
 * @head3 CORE Functions |
 * @index | CORE
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 *
 * Revision History
 * ------------------------------------------------------------------------
 $log:  $
 * ------------------------------------------------------------------------
 ********************************************************************************/
#ifndef VIDNLD_H
#define VIDNLD_H

int inForceHangup (COMM_OBJECT *pobCommunication);
int inOpenMDMCommun (COMM_OBJECT *obCommunication);
int inSendVIDBuffer(COMM_OBJECT *obCommunication, char *pszBuffer, int inLen);
static int inSendDLRPacket(COMM_OBJECT *obCommunication);
static int inGetVIDChar(COMM_OBJECT *pobCommunication, UINT uiTimeOut, char chChar );
static int inReadUntilETX(COMM_OBJECT *pobCommunication, char *pszBuffer, int inBytesRead );
static int inReadDLPacket(COMM_OBJECT *obCommunication, char *pszBuffer );
int inFrameIt(char *pszBuffer);
static int inVidActionRequest(COMM_OBJECT *obCommunication, char chDtype, VS_BOOL fCallbackFlag);
static int inWaitForOK(COMM_OBJECT *obCommunication );
int inParseDLPacket(char *pszBuffer);
int inParseVeritalkDLPacket(char *pszBuffer);
int inParseZontalkDLPacket(char *pszBuffer);
int inVeritalkDownload(TRANSACTION_OBJECT *pobTran);
int inAutoAnswerInit(TRANSACTION_OBJECT *pobTran);
int inAutoAnswerOn(int hModem);
int inAutoAnswerOff(void);
int inAutoAnswerReset(int hModem);
int inHostInitiatedDownload(TRANSACTION_OBJECT *pobTran);
int inVIDInitModemEnvironmentParam (MODEM_OBJECT *obModem);
int inVIDDefaultBaseInitModemEnvParam (MODEM_OBJECT *obModem);
int inVIDDefaultASPENInitModemEnvParam (MODEM_OBJECT *obModem);
int inVIDDefaultTDKInitModemEnvParam (MODEM_OBJECT *obModem);


#endif /* VIDNLD_H */

